package behavior.command.impl;

import behavior.command.Command;
import behavior.command.Television;

public class CommandChange implements Command {

	private Television tv;
	private int channel;

	public CommandChange(Television tv, int channel) {
		this.tv = tv;
		this.channel = channel;
	}

	public void execute() {
		tv.changeChannel(channel);
	}
}
